package com.limh.base.utils

import android.os.Bundle
import android.os.Message

/**
 * @function：封装msg
 * @author： limh
 * @date： 2018/10/7
 * Copyright @2018 Corpration Name
 */
object MsgUtils {
    fun setMsg(what: Int, msg: String): Message {
        val message = Message()
        val bundle = Bundle()
        message.what = what
        bundle.putString("data", msg)
        message.data = bundle
        return message
    }
}